package com.baizhi.service.impl;

import com.baizhi.dao.DepartDao;
import com.baizhi.Depart;
import com.baizhi.service.DepartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartServiceImpl implements DepartService {
    @Autowired
    private DepartDao dd;

    @Override
    public List<Depart> selectAll() {
        return dd.selectList(null);
    }

}
